//
//  NSString+Extendion.m
//  OASystem
//
//  Created by zhoupengfei on 15/11/17.
//  Copyright © 2015年 zpf. All rights reserved.
//

#import "NSString+Extendion.h"
//#import "OAToolBox.h"

@implementation NSString (Extendion)
+(CGSize)sizebyText:(NSString*)string font:(int)font size:(CGSize)size{
    NSDictionary * dic = @{NSFontAttributeName: [UIFont systemFontOfSize:font]};
    CGRect rect = [string boundingRectWithSize:size options:NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:dic context:nil];
    return rect.size;
}
@end
